package sigeco.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Ability Class.
 * 
 * Represents an Ability that can be associated to
 * a Knowledge forming a Cell for which a Person 
 * may have a Competency level.
 *  
 * @author julien
 */
@Entity
@Table(name = "abilities")
public class Ability {

	private String name;
	private Matrix matrix;
	private long id;

	@Column(nullable = false)
	public String getName() {
		return this.name;
	}

	public void setName(final String name) {
		this.name = name;
	}

	@ManyToOne(optional = false)
	public Matrix getMatrix() {
		return this.matrix;
	}

	public void setMatrix(final Matrix matrix) {
		this.matrix = matrix;
	}
	
	@Id
	@GeneratedValue
	public long getId() {
		return this.id;
	}

	public void setId(final long id) {
		this.id = id;
	}
	
}
